package com.gsq.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.management.relation.Role;

@TableName("sys_user")
@Data
@Accessors(chain = true)
public class Admin extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String salt;
    private String email;
    private String phone;
    private Boolean valid;

    @TableField(exist = false)
    private Role role;

}
